#include <iostream>

int main() {
    using namespace std;
    string a = "hello world";
    for (int i = a.length() - 1; i >= 0; i--)
        cout.put(a.at(i));
    return 0;
}